/**
 * @(#)IdManagerFactory.java Oct 16, 2006
 *
 * Copyright (c) 2005-2010 Psiqueware S.A. de C.V. All Rights Reserved.
 * This software is the proprietary information Psiqueware S.A. de C.V.
 * Use is subject to license terms.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 *
 * <br/>Usuario : AngelElectrico
 * <br/>Creaci&oacute;n: Oct 16, 2006 - 4:02:14 PM
 * <br/>
 * <br/>
 * <br/><t5>Cambios :</t5>
 * <br/><b>Fecha | Autor  |  Cambios</b>
 * <ul>
 * <li>Oct 16, 2006 | <a href = "mailto:AngelElectrico@PsiqueWare.com">Angel El&eacute;ctrico</a> | Creaci&oacute;n del Objeto.</li>
 *
 * </ul>
 */

package com.psiqueware.alheli.id;

import com.psiqueware.alheli.id.manager.IdManagerK;
import com.psiqueware.alheli.id.manager.SocialManagerK;
import com.psiqueware.alheli.id.manager.UsuariosManagerK;
import com.psiqueware.alheli.reflection.pooling.PoolObjeto;
import com.psiqueware.alheli.reflection.pooling.PoolObjetoListaInstancias;

/**
 * F&aacute;brica de Managers de Usuario.
 * <br/>Paquete Original: com.psiqueware.basico.id
 * <br/>Nombre  Original: UsuariosFatory
 * <br/>Oprima para ver : <a href="IdManagerFactory.java.html"><i>C&oacute;digo Fuente</i> </a>
 *
 * @author <a href="mailto:AngelElectrico@PsiqueWare.com">Angel El&eacute;ctrico</a>
 * @version Revision: 1.1 Oct 16, 2006 4:02:14 PM
 * @noinspection ClassWithoutLogger, ClassWithoutToString, ClassNamePrefixedWithPackageName
 */
public final class IdManagerFactory
{
    /**
     * Pool de {@link UsuariosManager}.
     *
     * @noinspection unchecked
     */
    private static final PoolObjeto<UsuariosManager> s_poolUsuarios = new PoolObjetoListaInstancias<UsuariosManagerK>(UsuariosManagerK.class);
    /**
     * Pool de {@link IdManager}.
     *
     * @noinspection unchecked
     */
    private static PoolObjeto<IdManager> s_poolId = new PoolObjetoListaInstancias<IdManagerK>(IdManagerK.class);
    /**
     * Pool de <code>SocialManager</code>.
     *
     * @noinspection unchecked
     */
    private static PoolObjeto<SocialManager> s_poolSocial = new PoolObjetoListaInstancias<SocialManagerK>(SocialManagerK.class);

    /**
     * Devuelve una instancia del {@link IdManager}.
     *
     * @return un {@link IdManager} instanciado siempre.
     */
    public static IdManager getLoginManager()
    {
        return s_poolId.referencia();
    }

    /**
     * Devuelve una instancia del {@link IdManager}.
     *
     * @return un {@link IdManager} instanciado siempre.
     */
    public static IdManager getIdManager()
    {
        return s_poolId.referencia();
    }

    /**
     * Devuelve una instancia del {@link UsuariosManager}.
     *
     * @return un {@link UsuariosManager} instanciado siempre.
     */
    public static UsuariosManager getUsuariosManager()
    {
        return s_poolUsuarios.referencia();
    }

    /**
     * Devuelve una instancia del <code>SocialManager</code>.
     *
     * @return un <code>SocialManger</code> instanciado siempre.
     */
    public static SocialManager getSocialManager()
    {
        return s_poolSocial.referencia();
    }
}



